function selectAll(a_sID){
    if(!a_sID) return;

    var oForm=document.getElementById(a_sID), oElements, oElement, oCheck=document.getElementById('chkSelectAll');

    if((!oForm) || (!oCheck)) return;

    var bIsChecked = false;
    if(oCheck.checked) bIsChecked=true;

    oElements=oForm.elements;

    for(var i = 0; i<oElements.length; i++){
        oElement = oElements[i];
        if(oElement.type=="checkbox" && oElement.name!="unSelectall"||oElement.unsupported=="selectAll") {oElement.checked=bIsChecked;}
    }
}
